			<div id="job-details">
				{if $smarty.session.apply_mail_sent AND $smarty.session.apply_mail_sent eq 1}
				<div class="apply-status-ok">
					{$translations.apply.success}
				</div>
				{/if}
				{if $job.days_old > 40}
				<div id="old-ad">
					{$translations.apply.old_ad}
				</div>
				{/if}
				{if $CURRENT_PAGE == 'realestate'}
				<!--
				<div id="applied-to-job">
					{$job.applied_count}
					{if $job.applied_count != 1}
					<p>{$translations.homepage.applicants}</p>
					{else}
					<p>{$translations.homepage.applicant}</p>
					{/if}
				</div>
				-->
				{/if}
				<h2>
				<!--
					{if $job.type_id == $smarty.const.JOBTYPE_FULLTIME}
					<img src="{$BASE_URL}img/icon-fulltime.png" alt="full time" />
					{elseif $job.type_id == $smarty.const.JOBTYPE_NSW}
					<img src="{$BASE_URL}img/icon-parttime.png" alt="part time" />
					{elseif $job.type_id == $smarty.const.JOBTYPE_QLD}
					<img src="{$BASE_URL}img/icon-freelance.png" alt="freelance" />
					{/if}
					-->
					<!--{$job.type_id}-->
					 {$job.title} 
				</h2>
				<!--
				<p>
					<span class="fading">at</span>
					{if $job.url && $job.url != 'http://'}
					<a href="{$job.url}">{$job.company}</a>
					{else}
					<strong>{$job.company}</strong>
					{/if}
					{if $job.location == 'Anywhere'}
					<strong>({$job.location})</strong>
					{else}
					<span class="fading">{$translations.homepage.in}</span> <strong>{$job.location}</strong>
					{/if}
				</p>
			-->
				
				<br />
				
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
				
				<tr>
          <td height="1" bgcolor="#d8e7b0"></td>
        </tr>
        <tr>

          <td height="6"></td>
        </tr>
        <tr>
          <td height="26" class="lanbiao"><h3>{$translations.property.gallery}:</h3> </td>
          </tr>
        <tr>
          <td>
		  
		  
		  
		  <div id="scroll_div" class="scroll_div">
<div id="scroll_begin">
<ul>

{section name=tmp1 loop=$gallery_array}
<li><a href="{$BASE_URL}{php}echo FILE_UPLOAD_DIR;{/php}{$gallery_array[tmp1].img}" target="_blank"><img src="{$BASE_URL}{php}echo FILE_UPLOAD_DIR;{/php}{$gallery_array[tmp1].img}" border=0 width=150 height="105"/></a></li>
{/section}
			  </ul>
			  </div>
			  <div id="scroll_end"></div>
</div>	  
		  
		  
		  

{literal}
<script language="javascript">
  var speed=20
  var scroll_begin = document.getElementById("scroll_begin");
  var scroll_end = document.getElementById("scroll_end");
  var scroll_div = document.getElementById("scroll_div");
  scroll_end.innerHTML=scroll_begin.innerHTML
   function Marquee(){
    if(scroll_end.offsetWidth-scroll_div.scrollLeft<=0)
     scroll_div.scrollLeft-=scroll_begin.offsetWidth
    else
     scroll_div.scrollLeft++
    
   }
  var MyMar=setInterval(Marquee,speed)
  scroll_div.onmouseover=function() {clearInterval(MyMar)}
  scroll_div.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
{/literal}
          </td>
          </tr>
        <tr>
          <td height="1" bgcolor="#d8e7b0"></td>
        </tr>
        <tr>

          <td height="6"></td>
        </tr>
       
        
        <tr>
          <td height="10">
		  
		  
		  <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td valign="top" width="50%"><h3>{$translations.property.contactdetail}:</h3></td>
			  <td valign="top"><h3>{$translations.property.askformoreinformation}:</h3></td>
             		  </td>
            </tr>
			
			
			
            <tr>
              <td valign="top">

			  {if $job.company!='none'}
			  <span class="biaogezi">{$translations.property.company}:</span> <span class="fcs-biaoti1">{$job.company} s}</span><br />
			  {/if}
			  
			  <span class="biaogezi">{$translations.property.contactman}:</span> <span class="fcs-biaoti1">{$job.contact}</span><br />
                <span class="biaogezi"><span class="lanbiao">{$translations.property.phone}</span>: </span><span class="fcs-biaoti1">{$job.phone} <br />
               {$translations.property.email}:{$job.poster_email} </span><br />
			   
			   <span class="biaogezi">{$translations.publish.inspectiontimes_label}:</span> <span class="fcs-biaoti1">{$job.inspectiontimes}</span><br />
			   </td>			
			<td>
			
			  
			  
			  {if $job.apply_online == 1 && $CURRENT_PAGE != 'verify'}
					<div id="apply_online_now">
					<!--
					<a href="#" onclick="$('#apply-online').SwitchVertically(10); document.getElementById('apply_name').focus(); window.location.href = '#apply'; return false;">&raquo; Apply now</a><a href="#" name="apply">&nbsp;</a>
					--></div>{if $smarty.session.apply_mail_sent AND $smarty.session.apply_mail_sent eq -1}
					
					<div class="validation-failure">
						<img src="{$BASE_URL}img/icon-delete.png" alt="" />
						{$translations.apply.failure}					</div>
					{/if}
				
					<div id="apply-online" {if $smarty.session.apply_mail_sent AND $smarty.session.apply_mail_sent eq -1}style="display: block;"{else}style="display: block;"{/if}>
						<form id="frm-apply-online" method="post" enctype="multipart/form-data" action="{$BASE_URL}apply-online/">
							<table>
								<tr>
									<td><label for="apply_name">{$translations.apply.name_label}:</label></td>
									<td>
										<input {if $smarty.session.apply_errors.apply_name}class="error"{/if} type="text" name="apply_name" id="apply_name" maxlength="50" size="30" value="{$smarty.session.apply_fields.apply_name}" />
										<span class="validation-error">{if $smarty.session.apply_errors.apply_name}<img src="{$BASE_URL}img/icon-delete.png" alt="" />{/if}</span>									</td>
								</tr>
								<tr>
									<td><label for="apply_email">{$translations.apply.email_label}:</label></td>
									<td>
										<input {if $smarty.session.apply_errors.apply_email}class="error"{/if} type="text" name="apply_email" id="apply_email" maxlength="50" size="30" value="{$smarty.session.apply_fields.apply_email}" />
										<span class="validation-error">{if $smarty.session.apply_errors.apply_email}<img src="{$BASE_URL}img/icon-delete.png" alt="" />{/if}</span>									</td>
								</tr>
								<tr>
									<td valign="top"><label for="apply_msg">{$translations.apply.message_label}:</label></td>
									<td>
										<textarea {if $smarty.session.apply_errors.apply_msg}class="error"{/if} name="apply_msg" id="apply_msg" cols="40" rows="3">{$smarty.session.apply_fields.apply_msg}</textarea>
										<span class="validation-error">{if $smarty.session.apply_errors.apply_msg}<img src="{$BASE_URL}img/icon-delete.png" alt="" />{/if}</span>									</td>
								</tr>
								<!--
								<tr>
									<td valign="top"><label for="apply_cv">{$translations.apply.cv_label}:</label></td>
									<td>
										<input type="file" name="apply_cv" id="apply_cv" />
										<span class="validation-error">{if $smarty.session.apply_errors.apply_cv}<img src="{$BASE_URL}img/icon-delete.png" alt="" />{/if}</span>	
										<div class="suggestion">{$translations.apply.cv_info}</div>									</td>
								</tr>
								-->
								<tr><td colspan="2">&nbsp;</td></tr>
								<tr>
									<td colspan="2">
										<input type="submit" name="submit" id="submit" value="{$translations.apply.submit}" /> {$translations.apply.or}
										<a href="#" onclick="$('#apply-online').SwitchVertically(10); return false;">{$translations.apply.cancel}</a>									</td>
								</tr>
							</table>
							<input type="hidden" name="job_id" id="job_id" value="{$job.id}" />
						</form>
					</div><!-- #apply-online -->
				{/if}
			</div><!-- #job-details -->	
			</td>
			
            </tr>
          </table>
		  
		  
		  
		  
		  </td>
        </tr>
        <tr>
          <td height="18"></td>
        </tr>
        <tr>
          <td height="1" bgcolor="#d8e7b0"></td>
        </tr>
        <tr>

          <td height="18" class="lanbiao"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td  valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td class="duanluo"><h3>{$translations.property.propertydetail}</h3>  <strong>{$translations.property.propertyid}: {$job.id} </strong><br />
                    <br />
                    
					<div id="job-description">
					
					{if $smarty.cookies.lang=='zh'}
					{$job.description_zh}
					{elseif  $smarty.cookies.lang=='tw'}
					{$job.description_tw}
					{elseif  $smarty.cookies.lang=='en' || $smarty.cookies.lang==''}		
					{$job.description}	
				{/if}			</div>				  </td>
                </tr>

                </table></td>
              <td width="149" height="205" align="right" class="fcs-biaoti1">
			  
			 		  
			  
			  <span id="switchtext">
			  <table width="150" height="205" border="0" cellpadding="0" cellspacing="0" class="propertyprice" id="englishDetail">
                <tr>
                  <td height="11"></td>
                </tr>
                <tr>
                  <td height="11" bgcolor="#d8e7b0" class="biaogezi">{$translations.property.price}:</td>
                </tr>

                <tr>
                  <td class="duanluo">&nbsp;&nbsp;&nbsp;&nbsp;${$job.price} </td>
                </tr>
                <tr>
                  <td bgcolor="#d8e7b0"></td>
                </tr>
                <tr>
                  <td height="11" bgcolor="#d8e7b0" class="biaogezi">{$translations.property.propertytype}:</td>
                </tr>
                <tr>
                  <td bgcolor=></td>
                </tr>
                <tr>
                  <td height="11" class="duanluo"> &nbsp;&nbsp;&nbsp;&nbsp;{php}$a=$this->_tpl_vars['job']['propertytype'];echo $this->_tpl_vars['property_array2'][$a];{/php}</td>
                </tr>
                <tr>

                  <td height="11" bgcolor="#d8e7b0" class="biaogezi">{$translations.property.suburb}:</td>
                </tr>
                <tr>
                  <td height="11" class="fcs-biaoti1"><span class="duanluo">&nbsp;&nbsp;&nbsp;&nbsp;</span>{$job.suburb} </td>
                </tr>
                <tr>
                  <td bgcolor="#d8e7b0" class="biaogezi">Region:</td>
                </tr>
                <tr>
                  <td class="fcs-biaoti1"><span class="duanluo">&nbsp;&nbsp;&nbsp;&nbsp;</span>{$state_array[$job.city]} / {$city_array[$job.city]}</td>
                </tr>
                <tr>
                  <td bgcolor="#d8e7b0" class="biaogezi">{$translations.property.bedrooms}:</td>
                </tr>
                <tr>

                  <td class="fcs-biaoti1"><span class="duanluo">&nbsp;&nbsp;&nbsp;{$job.bedrooms}</span></td>
                </tr>
                <tr>
                  <td bgcolor="#d8e7b0" class="biaogezi">{$translations.property.bathrooms}:</td>
                </tr>
                <tr>
                  <td><span class="duanluo">&nbsp;&nbsp;&nbsp;&nbsp;</span>{$job.bathrooms}</td>
                </tr>
                <tr>
                  <td bgcolor="#d8e7b0" class="biaogezi">{$translations.property.carspaces}:</td>
                </tr>
                <tr>
                  <td><span class="duanluo">&nbsp;&nbsp;&nbsp;&nbsp;</span>{$job.carspaces}</td>
                </tr>
                
				<!--
				<tr>

                  <td bgcolor="#d8e7b0" class="biaogezi">Energy Efficiency Rating:</td>
                </tr>
                <tr>
                  <td><span class="duanluo">&nbsp;&nbsp;&nbsp;&nbsp;</span>{$job.phone}</td>
                </tr>
				-->
				
              </table>
			  
			  

			  
			  </td>
            </tr>
            </table></td>
        </tr>
      </table>


				
				
				
				
{literal}
<script type="text/javascript">
$(document).ready(function() { 
	{/literal}{if $smarty.session.apply_mail_sent AND $smarty.session.apply_mail_sent eq -1}{literal}
	if (document.getElementById("apply_name"))
	{
		window.location.href = "#apply";
		document.getElementById("apply_name").focus();	
	}
	{/literal}{/if}{literal}
	$("#frm-apply-online").validate({
		rules: {
			apply_name: { required: true },
			apply_email: { required: true },
			apply_msg: { required: true },
			apply_url: { required: true }
		},
		messages: {
			apply_name: ' <img src="{/literal}{$BASE_URL}{literal}img/icon-delete.png" alt="" />',
			apply_email: ' <img src="{/literal}{$BASE_URL}{literal}img/icon-delete.png" alt="" />',
			apply_msg: ' <img src="{/literal}{$BASE_URL}{literal}img/icon-delete.png" alt="" />',
			apply_url: ' <img src="{/literal}{$BASE_URL}{literal}img/icon-delete.png" alt="" />'
		}
	});
}); 
</script>
{/literal}